// pages/classify/classify.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    // 左部导航数据
    navs: ["收藏艺术", "装饰艺术", "生活艺术", "场景艺术", "大师艺术", "大师复刻"],
    // 左部导航当前选中下标
    navIndex: 0,
    // 分类数据
    goods: [
      [{
        img: 'https://gw.alicdn.com/tfs/TB1YVnZegHqK1RjSZFgXXa7JXXa-1080-720.jpg_140x10000Q75.jpg_.webp',
        text: '油画'
      }],
      [{
        img: 'https://gw.alicdn.com/tfs/TB1YVnZegHqK1RjSZFgXXa7JXXa-1080-720.jpg_140x10000Q75.jpg_.webp',
        text: '油画'
      }, {
        img: 'https://gw.alicdn.com/tfs/TB1YVnZegHqK1RjSZFgXXa7JXXa-1080-720.jpg_140x10000Q75.jpg_.webp',
        text: '油画'
      }],
      [{
        img: 'https://gw.alicdn.com/tfs/TB1YVnZegHqK1RjSZFgXXa7JXXa-1080-720.jpg_140x10000Q75.jpg_.webp',
        text: '油画'
      }, {
        img: 'https://gw.alicdn.com/tfs/TB1YVnZegHqK1RjSZFgXXa7JXXa-1080-720.jpg_140x10000Q75.jpg_.webp',
        text: '油画'
      }, {
        img: 'https://gw.alicdn.com/tfs/TB1YVnZegHqK1RjSZFgXXa7JXXa-1080-720.jpg_140x10000Q75.jpg_.webp',
        text: '油画'
      }],
      [{
        img: 'https://gw.alicdn.com/tfs/TB1YVnZegHqK1RjSZFgXXa7JXXa-1080-720.jpg_140x10000Q75.jpg_.webp',
        text: '油画'
      }, {
        img: 'https://gw.alicdn.com/tfs/TB1YVnZegHqK1RjSZFgXXa7JXXa-1080-720.jpg_140x10000Q75.jpg_.webp',
        text: '油画'
      }, {
        img: 'https://gw.alicdn.com/tfs/TB1YVnZegHqK1RjSZFgXXa7JXXa-1080-720.jpg_140x10000Q75.jpg_.webp',
        text: '油画'
      }, {
        img: 'https://gw.alicdn.com/tfs/TB1YVnZegHqK1RjSZFgXXa7JXXa-1080-720.jpg_140x10000Q75.jpg_.webp',
        text: '油画'
      }],
      [{
        img: 'https://gw.alicdn.com/tfs/TB1YVnZegHqK1RjSZFgXXa7JXXa-1080-720.jpg_140x10000Q75.jpg_.webp',
        text: '油画'
      }, {
        img: 'https://gw.alicdn.com/tfs/TB1YVnZegHqK1RjSZFgXXa7JXXa-1080-720.jpg_140x10000Q75.jpg_.webp',
        text: '油画'
      }, {
        img: 'https://gw.alicdn.com/tfs/TB1YVnZegHqK1RjSZFgXXa7JXXa-1080-720.jpg_140x10000Q75.jpg_.webp',
        text: '油画'
      }, {
        img: 'https://gw.alicdn.com/tfs/TB1YVnZegHqK1RjSZFgXXa7JXXa-1080-720.jpg_140x10000Q75.jpg_.webp',
        text: '油画'
      }, {
        img: 'https://gw.alicdn.com/tfs/TB1YVnZegHqK1RjSZFgXXa7JXXa-1080-720.jpg_140x10000Q75.jpg_.webp',
        text: '油画'
      }],
      [{
        img: 'https://gw.alicdn.com/tfs/TB1YVnZegHqK1RjSZFgXXa7JXXa-1080-720.jpg_140x10000Q75.jpg_.webp',
        text: '油画'
      }, {
        img: 'https://gw.alicdn.com/tfs/TB1YVnZegHqK1RjSZFgXXa7JXXa-1080-720.jpg_140x10000Q75.jpg_.webp',
        text: '油画'
      }, {
        img: 'https://gw.alicdn.com/tfs/TB1YVnZegHqK1RjSZFgXXa7JXXa-1080-720.jpg_140x10000Q75.jpg_.webp',
        text: '油画'
      }, {
        img: 'https://gw.alicdn.com/tfs/TB1YVnZegHqK1RjSZFgXXa7JXXa-1080-720.jpg_140x10000Q75.jpg_.webp',
        text: '油画'
      }, {
        img: 'https://gw.alicdn.com/tfs/TB1YVnZegHqK1RjSZFgXXa7JXXa-1080-720.jpg_140x10000Q75.jpg_.webp',
        text: '油画'
      }, {
        img: 'https://gw.alicdn.com/tfs/TB1YVnZegHqK1RjSZFgXXa7JXXa-1080-720.jpg_140x10000Q75.jpg_.webp',
        text: '油画'
      }]
    ]
  },
  /**
   * 点击左部导航索引进行切换
   */
  clickNav: function(event) {
    let index = event.currentTarget.dataset.index;
    this.setData({
      navIndex: index
    })
  },

  goSearch: function() {
    wx.redirectTo({
      url: '../search/search'
    })
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function(options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function() {

  }
})